const dns = require('dns');

dns.resolve('baidu.com',(err,res)=>{
  if(err) console.log(err);
  else console.log(res);
})


//解析出来的结果
// [ '220.181.57.216', '111.13.101.208', '123.125.114.144' ]
